<script>
  const p1 = {
    lastName: "张",
    firstName: "三",
    get fullName() {
      return this.lastName + this.firstName;
    },
  };

  const p2 = new Proxy(p1, {
    get(target, key, receiver) {
      return Reflect.get(target, key, receiver);
    },
  });
</script>
